package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.NursingProjectDto;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface NursingProjectMapper {

    //分页查询项目列表
    Page<NursingProject> selectList(String name, Integer status);

    //新增护理项目
    void addProjict(NursingProject projectDto);

    //查询项目信息
    NursingProject selectById(@Param("id") Long id);

    //更新项目信息
    void update(NursingProject project);

    //删除护理项目
    void deleteById(@Param("id") Long id);

    //更新停用启用
    void updateStatus(@Param("id") Long id,
                      @Param("status") Integer status);

    //查询所有护理项目
    List<NursingProjectVo> getAll();

    //查询护理项目列表
    List<NursingProject> selectByIds(@Param("ids") List<Long> ids);
}
